﻿using System;

namespace TableCore.Exceptions
{
    public class TypeNotDefinedException : Exception
    {
        public TypeNotDefinedException(GTFile.Content content, string type) 
            : base(string.Format("没有定义类型 \"{0}\" (@{1}#{2})", type, content.File, content.Cmodel.ClassName))
        {

        }
    }

    public class TypeDefineException : Exception
    {
        public TypeDefineException(string type, string atError)
            : base(string.Format("类型\"{0}\" 定义错误 (@{1})", type, atError))
        { }
    }
}
